package com.common.dto;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.validator.constraints.NotEmpty;

import com.common.annotation.Order;
import com.common.dto.base.BaseDTO;


@Table(name="role_info")
public class RoleDTO extends BaseDTO implements Serializable{
	private static final long serialVersionUID = 1L;

	@Order(type="desc")
	@Id
	@GeneratedValue(generator = "UUID")
	protected String id;

	@Order(type="desc")
	@Column(name="role_name")
	@NotEmpty(message="权限名称不能为空")
	private String roleName;
	
	@Column(name="role_code")
	private String roleCode;
	
	
	@Transient
	private String isCheckedStr;
	@Transient 
	private String needDeleteStr;
	
	
	
	public String getNeedDeleteStr() {
		return needDeleteStr;
	}
	public void setNeedDeleteStr(String needDeleteStr) {
		this.needDeleteStr = needDeleteStr;
	}
	public String getIsCheckedStr() {
		return isCheckedStr;
	}
	public void setIsCheckedStr(String isCheckedStr) {
		this.isCheckedStr = isCheckedStr;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRoleCode() {
		return roleCode;
	}
	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	@Transient
	private List<String> ids;
	public List<String> getIds() {
		return ids;
	}
	public void setIds(List<String> ids) {
		this.ids = ids;
	}

	@Transient
	private List<String> functionCodeList;
	public List<String> getFunctionCodeList() {
		return functionCodeList;
	}
	public void setFunctionCodeList(List<String> functionCodeList) {
		this.functionCodeList = functionCodeList;
	}
}
